<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>src.datastructure.interval_list.Interval_list</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="src-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >ttrq4fleet - Petrina Papazek</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="src-module.html">Package&nbsp;src</a> ::
        <a href="src.datastructure-module.html">Package&nbsp;datastructure</a> ::
        <a href="src.datastructure.interval_list-module.html">Module&nbsp;interval_list</a> ::
        Class&nbsp;Interval_list
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="src.datastructure.interval_list.Interval_list-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class Interval_list</h1><p class="nomargin-top"><span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_src_data_2" name="uml_class_diagram_for_src_data_2">
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#begintime" title="src.datastructure.interval_list.Interval_list.begintime" alt="" coords="17,28,361,47"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#endtime" title="src.datastructure.interval_list.Interval_list.endtime" alt="" coords="17,47,361,65"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#interval" title="src.datastructure.interval_list.Interval_list.interval" alt="" coords="17,65,361,84"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#__init__" title="x.__init__(...) initializes x; see x.__class__.__doc__ for signature" alt="" coords="17,87,361,105"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#get_interval" title="src.datastructure.interval_list.Interval_list.get_interval" alt="" coords="17,105,361,124"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#set_interval" title="src.datastructure.interval_list.Interval_list.set_interval" alt="" coords="17,124,361,143"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#del_interval" title="src.datastructure.interval_list.Interval_list.del_interval" alt="" coords="17,143,361,161"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#get_begintime" title="searches for and returns the earliest record." alt="" coords="17,161,361,180"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#get_endtime" title="searches for and returns the most recent record." alt="" coords="17,180,361,199"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#__iter__" title="src.datastructure.interval_list.Interval_list.__iter__" alt="" coords="17,199,361,217"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#next" title="src.datastructure.interval_list.Interval_list.next" alt="" coords="17,217,361,236"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#__getitem__" title="src.datastructure.interval_list.Interval_list.__getitem__" alt="" coords="17,236,361,255"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#items" title="src.datastructure.interval_list.Interval_list.items" alt="" coords="17,255,361,273"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#__len__" title="src.datastructure.interval_list.Interval_list.__len__" alt="" coords="17,273,361,292"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#plot" title="plots the records of the list into a given plot (as points with &#39;+&#39; as &#160;marker)." alt="" coords="17,292,361,311"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#add_record" title="This method adds a Link&#45;record&#45;object to the record_list." alt="" coords="17,311,361,329"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#search_data" title="searches the list for data on one specific day." alt="" coords="17,329,361,348"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html#create_value_list" title="builds a list of data from the given interval&#45;list and attribute between &#160;the star&#45; and endtime with the length of n days." alt="" coords="17,348,361,367"/>
<area shape="rect" href="src.datastructure.interval_list.Interval_list-class.html" title="List of agg_records measured at a specific time interval." alt="" coords="16,11,363,368"/>
</map>
  <img src="uml_class_diagram_for_src_data_2.gif" alt='' usemap="#uml_class_diagram_for_src_data_2" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>List of agg_records measured at a specific time interval.</p>
  <p>Objects of this class are used from the record_list.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="src.datastructure.interval_list.Interval_list-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">interval</span>=<span class="summary-sig-default">0</span>)</span><br />
      x.__init__(...) initializes x; see x.__class__.__doc__ for signature</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="get_interval"></a><span class="summary-sig-name">get_interval</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.get_interval">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="set_interval"></a><span class="summary-sig-name">set_interval</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">value</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.set_interval">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="del_interval"></a><span class="summary-sig-name">del_interval</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.del_interval">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="src.datastructure.interval_list.Interval_list-class.html#get_begintime" class="summary-sig-name">get_begintime</a>(<span class="summary-sig-arg">self</span>)</span><br />
      searches for and returns the earliest record.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.get_begintime">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="src.datastructure.interval_list.Interval_list-class.html#get_endtime" class="summary-sig-name">get_endtime</a>(<span class="summary-sig-arg">self</span>)</span><br />
      searches for and returns the most recent record.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.get_endtime">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__iter__"></a><span class="summary-sig-name">__iter__</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.__iter__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="next"></a><span class="summary-sig-name">next</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.next">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__getitem__"></a><span class="summary-sig-name">__getitem__</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">key</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.__getitem__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="items"></a><span class="summary-sig-name">items</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.items">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__len__"></a><span class="summary-sig-name">__len__</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.__len__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="src.datastructure.interval_list.Interval_list-class.html#plot" class="summary-sig-name">plot</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">plotobject</span>,
        <span class="summary-sig-arg">attribute</span>=<span class="summary-sig-default">&quot;speed&quot;</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default">'blue'</span>)</span><br />
      plots the records of the list into a given plot (as points with '+' 
      as marker).</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.plot">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="src.datastructure.interval_list.Interval_list-class.html#add_record" class="summary-sig-name">add_record</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">record</span>)</span><br />
      This method adds a Link-record-object to the record_list.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.add_record">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="src.datastructure.interval_list.Interval_list-class.html#search_data" class="summary-sig-name">search_data</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">date</span>)</span><br />
      searches the list for data on one specific day.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.search_data">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="src.datastructure.interval_list.Interval_list-class.html#create_value_list" class="summary-sig-name">create_value_list</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">starttime</span>,
        <span class="summary-sig-arg">endtime</span>,
        <span class="summary-sig-arg">attribute</span>=<span class="summary-sig-default">'speed'</span>)</span><br />
      builds a list of data from the given interval-list and attribute 
      between the star- and endtime with the length of n days.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.create_value_list">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="src.datastructure.interval_list.Interval_list-class.html#begintime" class="summary-name">begintime</a> = <code title="property(get_begintime, None, None, &quot;timestamp of the earliest record \
(calculated from input data)&quot;)">property(get_begintime, None, None, &quot;timestamp of <code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="src.datastructure.interval_list.Interval_list-class.html#endtime" class="summary-name">endtime</a> = <code title="property(get_endtime, None, None, &quot;timestamp of the most up-to-date-re\
cord (calculated from input data)&quot;)">property(get_endtime, None, None, &quot;timestamp of the <code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="src.datastructure.interval_list.Interval_list-class.html#interval" class="summary-name">interval</a> = <code title="property(get_interval, set_interval, del_interval, &quot;time interval&quot;)">property(get_interval, set_interval, del_interval, <code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">interval</span>=<span class="sig-default">0</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>x.__init__(...) initializes x; see x.__class__.__doc__ for 
  signature</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>interval</code></strong> - time interval (default: 0)</li>
    </ul></dd>
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="get_begintime"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">get_begintime</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.get_begintime">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>searches for and returns the earliest record.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>agg_record, if there is no record in the list the method returns 
          None.</dd>
  </dl>
</td></tr></table>
</div>
<a name="get_endtime"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">get_endtime</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.get_endtime">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>searches for and returns the most recent record.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>agg_record, if there is no record in the list the method returns 
          None.</dd>
  </dl>
</td></tr></table>
</div>
<a name="plot"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plot</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">plotobject</span>,
        <span class="sig-arg">attribute</span>=<span class="sig-default">&quot;speed&quot;</span>,
        <span class="sig-arg">color</span>=<span class="sig-default">'blue'</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.plot">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>plots the records of the list into a given plot (as points with '+' as
  marker).</p>
  <p>The method does not initialize a new figure.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>plotobject</code></strong> - object that offers plotting features (e.g. Plot)</li>
        <li><strong class="pname"><code>attribute</code></strong> - attribute that shall be plotted such as speed or travel time 
          (default: speed)</li>
        <li><strong class="pname"><code>color</code></strong> - plotting color (default: blue)</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="add_record"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">add_record</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">record</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.add_record">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This method adds a Link-record-object to the record_list.</p>
  <p>Therefore the record shall be of the type agg_record. The 
  record-object must have an interval-attribute in order to check if they 
  can be added to this list. The list only takes records of one specific 
  interval.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="search_data"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">search_data</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">date</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.search_data">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>searches the list for data on one specific day.</p>
  <p>The method returns the first found value. Multiple values are not 
  supposed to be in the list because agg_records are already 
  aggregated.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>date</code></strong> - date-object for searching</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>found record or None</dd>
  </dl>
</td></tr></table>
</div>
<a name="create_value_list"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">create_value_list</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">starttime</span>,
        <span class="sig-arg">endtime</span>,
        <span class="sig-arg">attribute</span>=<span class="sig-default">'speed'</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="src.datastructure.interval_list-pysrc.html#Interval_list.create_value_list">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>builds a list of data from the given interval-list and attribute 
  between the star- and endtime with the length of n days.</p>
  <p>If a day has no data, the value will be set None. Therefore several 
  lists can be compared, so that the same days are compared. Otherwise 
  lists of reference data and regular data might be of different lengths 
  (because of missing value) and useless for comparing them by index.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>starttime</code></strong> - earliest date (date-object)</li>
        <li><strong class="pname"><code>endtime</code></strong> - most recent date (date-object)</li>
        <li><strong class="pname"><code>attribute</code></strong> - attribute of the Agg_record, which is added to the list</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>list of the attribute values for every day in that time 
          interval/Interval_list</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== CLASS VARIABLE DETAILS ==================== -->
<a name="section-ClassVariableDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variable Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariableDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="begintime"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">begintime</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
property(get_begintime, None, None, &quot;timestamp of the earliest record <span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
(calculated from input data)&quot;)
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="endtime"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">endtime</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
property(get_endtime, None, None, &quot;timestamp of the most up-to-date-re<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
cord (calculated from input data)&quot;)
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="interval"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">interval</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
property(get_interval, set_interval, del_interval, &quot;time interval&quot;)
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="src-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >ttrq4fleet - Petrina Papazek</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Thu Oct 25 19:15:40 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
